<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>赫赫后台</title>

    <!-- Bootstrap -->
    <link href="__HAHA__/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="__HAHA__/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="__HAHA__/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="__HAHA__/iCheck/skins/flat/green.css" rel="stylesheet">

    <!-- bootstrap-progressbar -->
    <link href="__HAHA__/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="__HAHA__/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <!-- bootstrap-daterangepicker -->
    <link href="__HAHA__/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="__HAHA__/build/css/custom.min.css" rel="stylesheet">
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">

        <!--tp5引入后台左侧模板-->
        {include file="public/left" /}


        <!-- top navigation--tp5引入头部模板替换-->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            <!-- top tiles -->


            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>管理员列表
                                <small><a style="color: #00AEEF" href="{:url('admin/add')}">添加管理员</a></small>
                            </h2>

                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">

                            <table class="table">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>用户名</th>
                                    <th>操作</th>

                                </tr>
                                </thead>
                                <tbody>

                                {volist name='adminres' id='admin'}
                                <tr>
                                    <td scope="row">{$admin.id}</td>
                                    <td>{$admin.name}</td>
                                    <td>
                                        <a href="{:url('edit',array('id'=>$admin['id']))}" class="btn btn-success">编辑</a>
                                        <a href="{:url('del',array('id'=>$admin['id']))}" type="button" class="btn btn-dark">删除</a>
                                    </td>
                                </tr>
                                {/volist}

                                </tbody>
                            </table>

                        </div>
                    </div>
                    <div style="float: right">
                        {$adminres->render()}

                    </div>
                </div>











                <div class="clearfix"></div>


            </div>






            <!-- /top tiles -->


        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
            <div class="pull-right">
                Gentelella - Bootstrap Admin Template by Colorlib. More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">赫赫之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
            </div>
            <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
    </div>
</div>

<!-- jQuery -->
<script src="__HAHA__/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="__HAHA__/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="__HAHA__/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="__HAHA__/nprogress/nprogress.js"></script>
<!-- Chart.js -->
<script src="__HAHA__/Chart.js/dist/Chart.min.js"></script>
<!-- gauge.js -->
<script src="__HAHA__/gauge.js/dist/gauge.min.js"></script>
<!-- bootstrap-progressbar -->
<script src="__HAHA__/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
<!-- iCheck -->
<script src="__HAHA__/iCheck/icheck.min.js"></script>
<!-- Skycons -->
<script src="__HAHA__/skycons/skycons.js"></script>
<!-- Flot -->
<script src="__HAHA__/Flot/jquery.flot.js"></script>
<script src="__HAHA__/Flot/jquery.flot.pie.js"></script>
<script src="__HAHA__/Flot/jquery.flot.time.js"></script>
<script src="__HAHA__/Flot/jquery.flot.stack.js"></script>
<script src="__HAHA__/Flot/jquery.flot.resize.js"></script>
<!-- Flot plugins -->
<script src="__HAHA__/flot.orderbars/js/jquery.flot.orderBars.js"></script>
<script src="__HAHA__/flot-spline/js/jquery.flot.spline.min.js"></script>
<script src="__HAHA__/flot.curvedlines/curvedLines.js"></script>
<!-- DateJS -->
<script src="__HAHA__/DateJS/build/date.js"></script>
<!-- JQVMap -->
<script src="__HAHA__/jqvmap/dist/jquery.vmap.js"></script>
<script src="__HAHA__/jqvmap/dist/maps/jquery.vmap.world.js"></script>
<script src="__HAHA__/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
<!-- bootstrap-daterangepicker -->
<script src="__HAHA__/moment/min/moment.min.js"></script>
<script src="__HAHA__/bootstrap-daterangepicker/daterangepicker.js"></script>

<!-- Custom Theme Scripts -->
<script src="__HAHA__/build/js/custom.min.js"></script>

</body>
</html>
